package com.Iconcat.system.mapper;

import com.Iconcat.system.entity.CatAdmin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.lettuce.core.dynamic.annotation.Param;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 后台管理员信息 Mapper 接口
 * </p>
 *
 * @author zzq
 * @since 2023-11-17
 */
public interface CatAdminMapper extends BaseMapper<CatAdmin> {
    @Select("select * from cat_admin where username=#{username} and password=#{password}")
    CatAdmin login(String admin_Account, String admin_Password);
    int updateByPwd(@Param("auid") Integer auid, @Param("password")String password);

    int countByUsernameAndPassword(@Param("username") String username);
}
